/*
package com.example.demo.tool;
import javax.xml.bind.annotation.*;
import java.io.Serializable;


public class LlmToolConvert {



    // 根类，对应<tool_use>元素
    @XmlRootElement(name = "tool_use")
    @XmlAccessorType(XmlAccessType.FIELD)
    public class ToolUse implements Serializable {

        private static final long serialVersionUID = 1L;

        // 对应<name>元素
        @XmlElement(name = "name")
        private String name;

        // 对应<arguments>元素
        @XmlElement(name = "arguments")
        private Arguments arguments;

        // 构造方法、getter和setter
        public ToolUse() {
        }

        public ToolUse(String name, Arguments arguments) {
            this.name = name;
            this.arguments = arguments;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Arguments getArguments() {
            return arguments;
        }

        public void setArguments(Arguments arguments) {
            this.arguments = arguments;
        }

        @Override
        public String toString() {
            return "ToolUse{" +
                    "name='" + name + '\'' +
                    ", arguments=" + arguments +
                    '}';
        }
    }

    // 参数类，对应<arguments>元素
    @XmlAccessorType(XmlAccessType.FIELD)
    class Arguments {

        // 使用@XmlValue表示该字段是元素的文本内容
        @XmlValue
        private String value;

        // 构造方法、getter和setter
        public Arguments() {
        }

        public Arguments(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        @Override
        public String toString() {
            return "Arguments{" +
                    "value='" + value + '\'' +
                    '}';
        }
    }
}
*/
